package com.zb.controller;

import com.zb.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tb-item-model")
public class ItemController {

    @Autowired
    PageService pageService;

    @GetMapping("/page")
    public Boolean page(@RequestParam("id") String id){
         pageService.createPage(id);
         return true;
    }
}
